<!DOCTYPE html>
<!-- saved from url=(0042)https://sc.myuserhub.com/portal/pswdchange -->
<html>
{include file="public/head"}
<body>
{include file="public/nav"}

<!--<div class="container">-->
<div class="rowHeader">
    <div class="container">
        <div class="row">
            <div class="col-lg-6 col-md-6" style="text-align:left">
                <h1>

                    欢迎 <span class="userName">{$UserInfo.username}</span>

                    <span class="label label-success lb-sm" style="vertical-align: middle;">通过审核</span>

                </h1>
            </div>
            <!--End collumn-->

            <div class="col-lg-6 col-md-6 pageTitleRight">
                <h1 class="pull-right">转账</h1>
            </div>
            <!--End collumn-->

        </div>
        <!--End Row-->
    </div>
    <!--End container-->
</div>
<!--End Row-->

<div class="container">
    <div class="row mainRow">

        <!--菜单栏-->
        {include file="public/menu"}
        <!--End column-->
        <div class="col-lg-8 col-md-9 col-sm-9 mainContent">

            <div class="panel panel-default">

                <nav class="navbar" id="navAccount">
                    <div>
                        <div class="navbar-header">
                            <button id="navAccountButton" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbarAccount" aria-expanded="false" aria-controls="navbar">
                                <span id="navAccountButtonText"></span>
                                <span><i class="fa fa-bars" aria-hidden="true"></i></span>
                            </button>
                        </div>

                        <div id="navbarAccount" class="collapse navbar-collapse">
                            <ul class="nav nav-tabs nav-justified">
                                <li role="presentation"><a href="{:url('Finance/FinanceList')}">交易历史</a></li>
                                <!--                                <li role="presentation"><a href="/liveaccount/ledgerreport/account/8033126/page/0">账户报告</a></li>-->
<!--                                <li role="presentation" class="active"><a href="{:url('Assets/Recharge')}">存款</a></li>-->
                                <li role="presentation" class="active"><a href="{:url('Assets/AssetsTransfer')}">转账</a></li>
                                <li role="presentation"><a href="{:url('Assets/AssetsWithdraw')}">取款</a></li>
                            </ul>
                        </div>
                    </div>
                </nav>


                <div class="headingDeposit">
                    <br>
                    <!--<h1>银行转帐</h1>-->
                    <ul class="nav nav-pills nav-justified navPayments">
<!--                        <li role="presentation" ><a href="{:url('Assets/Recharge')}">充值</a></li>-->

                        <li role="presentation" class="active"><a href="{:url('Assets/AssetsTransfer')}">内部转账</a></li>
                    </ul>
                </div><!--End Heading-->

                <br>

                <div class="tab-content">

                    <div role="tabpanel" class="tab-pane fade in active" id="epaymentsTab">

                        <div class="panel-body">


                            <form method="post">

                                <!--Input Amount -->
                                <div class="form-group">
                                    <label class="col-lg-4 col-md-4 control-label" for="num">请输入您的金额 <span class="redStar">*</span></label>
                                    <div class="col-lg-8 col-md-8">
                                        <div class="input-group">
                                            <span class="input-group-addon"><i class="fa fa-usd"></i></span>
                                            <input name="num" id="num" type="text" class="form-control" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
                                        </div>
                                        <div id="amountCalculator" style="display: none;"></div>
                                        <span class="help-block" id="helpBlockWithdrawalAmount"></span>
                                    </div>
                                </div>

                                <div style="clear:both;"></div>
                                <input type="hidden" id="WithdrawalCurrency" name="WithdrawalCurrency" value="CNY">


                                <!--Input CustomerFirstName -->
                                <div id="groupCustomerFirstName" class="form-group">
                                    <label class="col-lg-4 col-md-4 control-label" for="to_user">转出账号 <span class="redStar">*</span></label>
                                    <div class="col-lg-8 col-md-8">


                                        <input name="to_user" id="to_user" type="text" class="form-control" maxlength="50">

                                        <span class="help-block" id="helpBlockCustomerFirstName"></span>
                                    </div>
                                </div>
                                <div style="clear:both;"></div>

                                <div style="clear:both;"></div>



                                <div id="passbox" class="form-group">
                                    <label class="col-lg-4 col-md-4 control-label" for="password">密码 <span class="redStar">*</span></label>
                                    <div class="col-lg-8 col-md-8">


                                        <input name="password" id="password" type="password" class="form-control" >


                                        <span class="help-block" id=""></span>
                                    </div>
                                </div>
                                <div style="clear:both;"></div>

                                <div style="clear:both;"></div>

                                <!--Input Description -->
                                <div id="groupDescription" class="form-group" style="display:none;">
                                    <label class="col-lg-4 col-md-4 control-label" for="Description"> <span class="redStar">*</span></label>
                                    <div class="col-lg-8 col-md-8">


                                        <input name="Description" id="Description" type="hidden" class="form-control" maxlength="50">


                                        <span class="help-block" id="helpBlockDescription"></span>
                                    </div>
                                </div>
                                <div style="clear:both;"></div>

                                <div style="clear:both;"></div>



                                <div class="col-lg-12">
                                    <button type="submit" id="WithdrawalSubmit" class="pull-right btn btn-default blueBtn" onclick="return validateWithdrawalPG();">
                                        转出                            </button>
                                    <button style="display: none;" type="button" id="WithdrawalSubmitting" class="pull-right btn btn-default blueBtn" disabled="">
                                        <i class="fa fa-circle-o-notch fa-spin" aria-hidden="true"></i> 提交                            </button>
                                </div>

                            </form>

                        </div>


                    </div><!--End tab epaymentsTab-->


                </div><!--End tab-content-->


            </div><!--End panel-->

        </div>
        <!--End column-->

    </div>
    <!--End row-->
</div>
<!--End container-->

{include file="public/foot"}
<script src="/static/Admin/layer/layer.js"></script>
</body>
<script>
    var flag = 1;
    $("#WithdrawalSubmit").click(function (e) {
        e.preventDefault();
        if (!flag){
            return  false
        }
        $("#WithdrawalSubmit").hide()
        $("#WithdrawalSubmitting").show()
        flag = 0;
        $.ajax({
            type:"post",
            dataType:"json",
            data:$("form").serialize(),
            url:"{:url('Assets/AssetsTransfer')}",
            success:function (data) {
                if (data.status == 1){
                    layer.msg(data.message,{time:1500},function () {
                        window.location.reload()
                    })
                }else {
                    layer.msg(data.message,{time:1500},function () {
                        $("#WithdrawalSubmit").show()
                        $("#WithdrawalSubmitting").hide()
                        flag = 1;
                    })

                }
            }
        })
    })
</script>
</html>
